<?php
	session_start();
	$username = $_POST['username'];
	$password = $_POST['password'];
	if ($username == "123" && $password =="456") {
		$_SESSION["is_login"] = "ok";
		header('location:index.php');
	}else{
		$_SESSION["is_login"] = "no";
		echo "账号密码不一致!";
		header('location:login.php');
	}
?>